import request from '@/utils/request'

// 门店账号列表
export const displayWindowBusinessListCopy = (pageNo, paId, businessName) => {
  return request({
    url: '/displayWindowBusiness/displayWindowBusinessListCopy',
    params: {
      pageNo,
      paId,
      businessName
    },
    method: 'post'
  })
}
// 门店账号列表
export const displayWindowPartnerMaterialCategoryPojoListNoPage = (paId) => {
  return request({
    url: '/displayWindowPartnerMaterialCategory/displayWindowPartnerMaterialCategoryPojoListNoPage',
    params: {
      paId
    },
    method: 'post'
  })
}
// 门店账号列表
export const displayWindowPartnerCategoryPojoListNoPage = (paId) => {
  return request({
    url: '/displayWindowPartnerCategory/displayWindowPartnerCategoryPojoListNoPage',
    params: {
      paId
    },
    method: 'post'
  })
}

// 获取活动相关设备列表
export function displayBusinessDeviceListNoPage(activityId) {
  return request({
    url: '/displayWindowDevice/displayBusinessDeviceListNoPage',
    method: 'get',
    params: {
      activityId
    }
  })
}

// 门店账号删除
export function displayWindowBusinessDelete(businessId) {
  return request({
    url: '/displayWindowBusiness/displayWindowBusinessDelete',
    params: {
      businessId
    }
  })
}

// 门店账号删除
export function displayWindowBusinessNoPageCopy(paId) {
  return request({
    url: '/displayWindowBusiness/displayWindowBusinessNoPageCopy',
    params: {
      paId
    }
  })
}

// 门店账号重置密码
export function displayWindowBusinessReset(businessId) {
  return request({
    url: '/displayWindowBusiness/displayWindowBusinessReset',
    params: {
      businessId
    }
  })
}

// 门店账号新增/修改
export function displayWindowBusinessCopyOperation(jsonString) {
  return request({
    url: '/displayWindowBusiness/displayWindowBusinessCopyOperation',
    method: 'post',
    data: jsonString,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
  })
}

// 厂商素材列表
export const displayPartnerMaterialPojoList = (pageNo, paId, businessName) => {
  return request({
    url: '/displayWindowPartnerMaterial/displayPartnerMaterialPojoList',
    params: {
      pageNo,
      paId,
      businessName
    },
    method: 'post'
  })
}

// 厂商素材删除
export function displayPartnerMaterialDelete(fileId) {
  return request({
    url: '/displayWindowPartnerMaterial/displayPartnerMaterialDelete',
    params: {
      fileId
    }
  })
}

// 厂商素材新增/修改
export function displayPartnerMaterialPojoOperation(jsonString) {
  return request({
    url: '/displayWindowPartnerMaterial/displayWindowPartnerMaterialPojoOperation',
    method: 'post',
    data: jsonString,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
  })
}

// 厂商设备列表
export const displayPartnerDevicePojoList = (pageNo, paId, businessName, deviceCode) => {
  return request({
    url: '/displayWindowDevice/displayPartnerDevicePojoList',
    params: {
      pageNo,
      paId,
      businessName,
      deviceCode,
    },
    method: 'post'
  })
}

// 厂商设备删除
export function displayPartnerDeviceDelete(fileId) {
  return request({
    url: '/displayWindowDevice/displayPartnerDeviceDelete',
    params: {
      fileId
    }
  })
}

// 厂商设备删除
export function displayPartnerNoticePojoDetails(activityId) {
  return request({
    url: '/displayWindowNotice/displayPartnerNoticePojoDetails',
    params: {
      activityId
    }
  })
}

// 厂商设备新增/修改
export function displayPartnerDevicePojoOperation(jsonString) {
  return request({
    url: '/displayWindowDevice/displayPartnerDevicePojoOperation',
    method: 'post',
    data: jsonString,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
  })
}

// 厂商广告列表
export const displayWindowNoticePojoList = (pageNo, paId, businessName, deviceCode) => {
  return request({
    url: '/displayWindowNotice/displayWindowNoticePojoList',
    params: {
      pageNo,
      paId,
      businessName,
      deviceCode,
    },
    method: 'post'
  })
}

// 厂商广告删除
export function displayWindowNoticeDelete(fileId) {
  return request({
    url: '/displayWindowNotice/displayWindowNoticeDelete',
    params: {
      fileId
    }
  })
}

// 厂商广告新增/修改
export function displayWindowNoticePojoOperation(jsonString) {
  return request({
    url: '/displayWindowNotice/displayWindowNoticePojoOperation',
    method: 'post',
    data: jsonString,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
  })
}

// 厂商广告列表
export const displayWindowPartnerMaterialCategoryPojoList = (pageNo, paId, categoryName) => {
  return request({
    url: '/displayWindowPartnerMaterialCategory/displayWindowPartnerMaterialCategoryPojoList',
    params: {
      pageNo, paId, categoryName
    },
    method: 'post'
  })
}

// 厂商广告删除
export function displayWindowPartnerMaterialCategoryDelete(cateId) {
  return request({
    url: '/displayWindowPartnerMaterialCategory/displayWindowPartnerMaterialCategoryDelete',
    params: {
      cateId
    }
  })
}

// 厂商广告新增/修改
export function displayWindowPartnerMaterialCategoryPojoOperation(jsonString) {
  return request({
    url: '/displayWindowPartnerMaterialCategory/displayWindowPartnerMaterialCategoryPojoOperation',
    method: 'post',
    data: jsonString,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
  })
}

// 厂商广告列表
export const displayWindowPoolPojoList = (pageNo, paId, advertName) => {
  return request({
    url: '/displayWindowPool/displayWindowPoolPojoList',
    params: {
      pageNo, paId, advertName
    },
    method: 'post'
  })
}

// 厂商广告删除
export function displayWindowPoolDelete(poolId) {
  return request({
    url: '/displayWindowPool/displayWindowPoolPojoDelete',
    params: {
      poolId
    }
  })
}

// 厂商广告删除
export function displayWindowPoolStatusUpdate(poolId, status) {
  return request({
    url: '/displayWindowPool/statusUpdate',
    params: {
      poolId, status
    }
  })
}

// 厂商广告新增/修改
export function displayWindowPoolPojoOperation(jsonString) {
  return request({
    url: '/displayWindowPool/displayWindowPoolPojoOperation',
    method: 'post',
    data: jsonString,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
  })
}

// 厂商广告列表
export const displayWindowPartnerProductPojoList = (pageNo, paId, productName) => {
  return request({
    url: '/displayWindowPartnerProduct/displayWindowPartnerProductPojoList',
    params: {
      pageNo, paId, productName
    },
    method: 'post'
  })
}

// 厂商广告删除
export function displayWindowPartnerProductDelete(productId) {
  return request({
    url: '/displayWindowPartnerProduct/displayWindowPartnerProductDelete',
    params: {
      productId
    }
  })
}

// 厂商广告新增/修改
export function displayWindowPartnerProductPojoOperation(jsonString) {
  return request({
    url: '/displayWindowPartnerProduct/displayWindowPartnerProductPojoOperation',
    method: 'post',
    data: jsonString,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
  })
}

// 厂商广告列表
export const displayWindowPartnerCategoryPojoList = (pageNo, paId, categoryName) => {
  return request({
    url: '/displayWindowPartnerCategory/displayWindowPartnerCategoryPojoList',
    params: {
      pageNo, paId, categoryName
    },
    method: 'post'
  })
}

// 厂商广告删除
export function displayWindowPartnerCategoryDelete(cateId) {
  return request({
    url: '/displayWindowPartnerCategory/displayWindowPartnerCategoryDelete',
    params: {
      cateId
    }
  })
}

// 厂商广告新增/修改
export function displayWindowPartnerCategoryPojoOperation(jsonString) {
  return request({
    url: '/displayWindowPartnerCategory/displayWindowPartnerCategoryPojoOperation',
    method: 'post',
    data: jsonString,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
  })
}
